package cc.inik.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.nle.mylibrary.forUse.zigbee.Zigbee;
import com.nle.mylibrary.transfer.DataBusFactory;

public class MainActivity extends AppCompatActivity {
    private Zigbee zigbee;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        TextView output_lighten = findViewById(R.id.output_lighten);
        TextView output_temputer = findViewById(R.id.output_temputer);
        EditText input_lighten = findViewById(R.id.input_lighten);
        EditText input_temputer = findViewById(R.id.input_temputer);
        Button btn_start = findViewById(R.id.btn_start);
        zigbee = new Zigbee(DataBusFactory.newSocketDataBus("192.168.0.200", 950));
        Handler handler = new Handler();
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
               // double[] vals  =zigbeeSerial.getTmpHum();
            }
        };
        btn_start.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
    }
}